package com.wocai.jrt.orgadmin.flow.model;

import java.util.ArrayList;
import java.util.List;

public class FlowInstanceBean {
    /**
     * order by 排序语句
     * 对应数据库表字段 flow_instance
     */
    private String orderBy;

    /**
     * 分页开始记录
     * 对应数据库表字段 flow_instance
     */
    private Integer start;

    /**
     * 分页大小
     * 对应数据库表字段 flow_instance
     */
    private int pageSize = 10;

    /**
     * 是否指定 distinct 去除重复
     * 对应数据库表字段 flow_instance
     */
    private boolean distinct;

    /**
     * 逻辑or语句
     * 对应数据库表字段 flow_instance
     */
    private List<Criteria> oredCriteria;

    /**
     */
    public FlowInstanceBean() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     * 设置 order by 排序语句
     */
    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    /**
     * 获得 order by 排序语句
     */
    public String getOrderBy() {
        return orderBy;
    }

    /**
     * 设置 start，分页开始记录
     */
    public void setStart(Integer start) {
        this.start = start;
    }

    /**
     * 获得 start，分页开始记录
     */
    public Integer getStart() {
        return start;
    }

    /**
     * 设置 pageSize，分页大小
     */
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * 获得 pageSize，分页大小
     */
    public int getPageSize() {
        return pageSize;
    }

    /**
     * 设置是否指定 distinct 去除重复
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * 是否设置了distinct语句，true是，false否。
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * 获得逻辑or语句
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * 添加逻辑or语句
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * 添加逻辑and语句
     */
    public void and(Criteria criteria) {
        criteria.setAndRelation(true);
        oredCriteria.add(criteria);
    }

    /**
     * 新建逻辑或or语句
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * 新建逻辑and语句
     */
    public Criteria and() {
        Criteria criteria = createCriteriaInternal();
        criteria.setAndRelation(true);
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * 创建查询条件，如果逻辑或为空，同时将查询条件放入。
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     * 创建新查询条件。
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * 清除逻辑或or语句，并且distinct为false，不去重。
     */
    public void clear() {
        oredCriteria.clear();
    }

    /**
     * 该类对应数据库表 flow_instance
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void orCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition, true));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void orCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value, true));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void orCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2, true));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdIsNull() {
            orCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria orIdIsNotNull() {
            orCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria orIdEqualTo(String value) {
            orCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotEqualTo(String value) {
            orCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdGreaterThan(String value) {
            orCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdGreaterThanOrEqualTo(String value) {
            orCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdLessThan(String value) {
            orCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdLessThanOrEqualTo(String value) {
            orCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdLike(String value) {
            orCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotLike(String value) {
            orCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria orIdIn(List<String> values) {
            orCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotIn(List<String> values) {
            orCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria orIdBetween(String value1, String value2) {
            orCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotBetween(String value1, String value2) {
            orCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andEventIdIsNull() {
            addCriterion("event_id is null");
            return (Criteria) this;
        }

        public Criteria andEventIdIsNotNull() {
            addCriterion("event_id is not null");
            return (Criteria) this;
        }

        public Criteria andEventIdEqualTo(String value) {
            addCriterion("event_id =", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdNotEqualTo(String value) {
            addCriterion("event_id <>", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdGreaterThan(String value) {
            addCriterion("event_id >", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdGreaterThanOrEqualTo(String value) {
            addCriterion("event_id >=", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdLessThan(String value) {
            addCriterion("event_id <", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdLessThanOrEqualTo(String value) {
            addCriterion("event_id <=", value, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdIsNull() {
            orCriterion("event_id is null");
            return (Criteria) this;
        }

        public Criteria orEventIdIsNotNull() {
            orCriterion("event_id is not null");
            return (Criteria) this;
        }

        public Criteria orEventIdEqualTo(String value) {
            orCriterion("event_id =", value, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdNotEqualTo(String value) {
            orCriterion("event_id <>", value, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdGreaterThan(String value) {
            orCriterion("event_id >", value, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdGreaterThanOrEqualTo(String value) {
            orCriterion("event_id >=", value, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdLessThan(String value) {
            orCriterion("event_id <", value, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdLessThanOrEqualTo(String value) {
            orCriterion("event_id <=", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdLike(String value) {
            addCriterion("event_id like", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdNotLike(String value) {
            addCriterion("event_id not like", value, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdLike(String value) {
            orCriterion("event_id like", value, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdNotLike(String value) {
            orCriterion("event_id not like", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdIn(List<String> values) {
            addCriterion("event_id in", values, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdNotIn(List<String> values) {
            addCriterion("event_id not in", values, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdBetween(String value1, String value2) {
            addCriterion("event_id between", value1, value2, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdNotBetween(String value1, String value2) {
            addCriterion("event_id not between", value1, value2, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdIn(List<String> values) {
            orCriterion("event_id in", values, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdNotIn(List<String> values) {
            orCriterion("event_id not in", values, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdBetween(String value1, String value2) {
            orCriterion("event_id between", value1, value2, "eventId");
            return (Criteria) this;
        }

        public Criteria orEventIdNotBetween(String value1, String value2) {
            orCriterion("event_id not between", value1, value2, "eventId");
            return (Criteria) this;
        }

        public Criteria andFlowIdIsNull() {
            addCriterion("flow_id is null");
            return (Criteria) this;
        }

        public Criteria andFlowIdIsNotNull() {
            addCriterion("flow_id is not null");
            return (Criteria) this;
        }

        public Criteria andFlowIdEqualTo(String value) {
            addCriterion("flow_id =", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotEqualTo(String value) {
            addCriterion("flow_id <>", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdGreaterThan(String value) {
            addCriterion("flow_id >", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdGreaterThanOrEqualTo(String value) {
            addCriterion("flow_id >=", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdLessThan(String value) {
            addCriterion("flow_id <", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdLessThanOrEqualTo(String value) {
            addCriterion("flow_id <=", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdIsNull() {
            orCriterion("flow_id is null");
            return (Criteria) this;
        }

        public Criteria orFlowIdIsNotNull() {
            orCriterion("flow_id is not null");
            return (Criteria) this;
        }

        public Criteria orFlowIdEqualTo(String value) {
            orCriterion("flow_id =", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdNotEqualTo(String value) {
            orCriterion("flow_id <>", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdGreaterThan(String value) {
            orCriterion("flow_id >", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdGreaterThanOrEqualTo(String value) {
            orCriterion("flow_id >=", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdLessThan(String value) {
            orCriterion("flow_id <", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdLessThanOrEqualTo(String value) {
            orCriterion("flow_id <=", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdLike(String value) {
            addCriterion("flow_id like", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotLike(String value) {
            addCriterion("flow_id not like", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdLike(String value) {
            orCriterion("flow_id like", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdNotLike(String value) {
            orCriterion("flow_id not like", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdIn(List<String> values) {
            addCriterion("flow_id in", values, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotIn(List<String> values) {
            addCriterion("flow_id not in", values, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdBetween(String value1, String value2) {
            addCriterion("flow_id between", value1, value2, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotBetween(String value1, String value2) {
            addCriterion("flow_id not between", value1, value2, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdIn(List<String> values) {
            orCriterion("flow_id in", values, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdNotIn(List<String> values) {
            orCriterion("flow_id not in", values, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdBetween(String value1, String value2) {
            orCriterion("flow_id between", value1, value2, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdNotBetween(String value1, String value2) {
            orCriterion("flow_id not between", value1, value2, "flowId");
            return (Criteria) this;
        }

        public Criteria andNowStepIsNull() {
            addCriterion("now_step is null");
            return (Criteria) this;
        }

        public Criteria andNowStepIsNotNull() {
            addCriterion("now_step is not null");
            return (Criteria) this;
        }

        public Criteria andNowStepEqualTo(Integer value) {
            addCriterion("now_step =", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria andNowStepNotEqualTo(Integer value) {
            addCriterion("now_step <>", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria andNowStepGreaterThan(Integer value) {
            addCriterion("now_step >", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria andNowStepGreaterThanOrEqualTo(Integer value) {
            addCriterion("now_step >=", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria andNowStepLessThan(Integer value) {
            addCriterion("now_step <", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria andNowStepLessThanOrEqualTo(Integer value) {
            addCriterion("now_step <=", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria orNowStepIsNull() {
            orCriterion("now_step is null");
            return (Criteria) this;
        }

        public Criteria orNowStepIsNotNull() {
            orCriterion("now_step is not null");
            return (Criteria) this;
        }

        public Criteria orNowStepEqualTo(Integer value) {
            orCriterion("now_step =", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria orNowStepNotEqualTo(Integer value) {
            orCriterion("now_step <>", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria orNowStepGreaterThan(Integer value) {
            orCriterion("now_step >", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria orNowStepGreaterThanOrEqualTo(Integer value) {
            orCriterion("now_step >=", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria orNowStepLessThan(Integer value) {
            orCriterion("now_step <", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria orNowStepLessThanOrEqualTo(Integer value) {
            orCriterion("now_step <=", value, "nowStep");
            return (Criteria) this;
        }

        public Criteria andNowStepIn(List<Integer> values) {
            addCriterion("now_step in", values, "nowStep");
            return (Criteria) this;
        }

        public Criteria andNowStepNotIn(List<Integer> values) {
            addCriterion("now_step not in", values, "nowStep");
            return (Criteria) this;
        }

        public Criteria andNowStepBetween(Integer value1, Integer value2) {
            addCriterion("now_step between", value1, value2, "nowStep");
            return (Criteria) this;
        }

        public Criteria andNowStepNotBetween(Integer value1, Integer value2) {
            addCriterion("now_step not between", value1, value2, "nowStep");
            return (Criteria) this;
        }

        public Criteria orNowStepIn(List<Integer> values) {
            orCriterion("now_step in", values, "nowStep");
            return (Criteria) this;
        }

        public Criteria orNowStepNotIn(List<Integer> values) {
            orCriterion("now_step not in", values, "nowStep");
            return (Criteria) this;
        }

        public Criteria orNowStepBetween(Integer value1, Integer value2) {
            orCriterion("now_step between", value1, value2, "nowStep");
            return (Criteria) this;
        }

        public Criteria orNowStepNotBetween(Integer value1, Integer value2) {
            orCriterion("now_step not between", value1, value2, "nowStep");
            return (Criteria) this;
        }

        public Criteria andResultIsNull() {
            addCriterion("result is null");
            return (Criteria) this;
        }

        public Criteria andResultIsNotNull() {
            addCriterion("result is not null");
            return (Criteria) this;
        }

        public Criteria andResultEqualTo(Integer value) {
            addCriterion("result =", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotEqualTo(Integer value) {
            addCriterion("result <>", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThan(Integer value) {
            addCriterion("result >", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThanOrEqualTo(Integer value) {
            addCriterion("result >=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThan(Integer value) {
            addCriterion("result <", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThanOrEqualTo(Integer value) {
            addCriterion("result <=", value, "result");
            return (Criteria) this;
        }

        public Criteria orResultIsNull() {
            orCriterion("result is null");
            return (Criteria) this;
        }

        public Criteria orResultIsNotNull() {
            orCriterion("result is not null");
            return (Criteria) this;
        }

        public Criteria orResultEqualTo(Integer value) {
            orCriterion("result =", value, "result");
            return (Criteria) this;
        }

        public Criteria orResultNotEqualTo(Integer value) {
            orCriterion("result <>", value, "result");
            return (Criteria) this;
        }

        public Criteria orResultGreaterThan(Integer value) {
            orCriterion("result >", value, "result");
            return (Criteria) this;
        }

        public Criteria orResultGreaterThanOrEqualTo(Integer value) {
            orCriterion("result >=", value, "result");
            return (Criteria) this;
        }

        public Criteria orResultLessThan(Integer value) {
            orCriterion("result <", value, "result");
            return (Criteria) this;
        }

        public Criteria orResultLessThanOrEqualTo(Integer value) {
            orCriterion("result <=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultIn(List<Integer> values) {
            addCriterion("result in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotIn(List<Integer> values) {
            addCriterion("result not in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultBetween(Integer value1, Integer value2) {
            addCriterion("result between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotBetween(Integer value1, Integer value2) {
            addCriterion("result not between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria orResultIn(List<Integer> values) {
            orCriterion("result in", values, "result");
            return (Criteria) this;
        }

        public Criteria orResultNotIn(List<Integer> values) {
            orCriterion("result not in", values, "result");
            return (Criteria) this;
        }

        public Criteria orResultBetween(Integer value1, Integer value2) {
            orCriterion("result between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria orResultNotBetween(Integer value1, Integer value2) {
            orCriterion("result not between", value1, value2, "result");
            return (Criteria) this;
        }
    }

    /**
     * 该类对应数据库表 flow_instance
     */
    public static class Criteria extends GeneratedCriteria {
        protected boolean andRelation;

        public boolean isAndRelation() {
            return andRelation;
        }

        protected Criteria() {
            super();
        }

        public void setAndRelation(boolean andRelation) {
            this.andRelation = andRelation;
        }
    }

    /**
     * 该类对应数据库表 flow_instance
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean orValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isOrValue() {
            return orValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, boolean orValue) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
            this.orValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, boolean orValue) {
            this(condition, value, null);
            this.orValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, boolean orValue) {
            this(condition, value, secondValue, null);
            this.orValue = true;
        }
    }
}